package com.suixun.entity.ext.credits.company;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.suixun.entity.ext.credits.BaseEntity;

/**
 * 商品使用详情分页实体
 * 
 * @author yh
 * @date 2017年12月15日
 */
public class GoodsPage extends BaseEntity {

    /**
     * 商品号
     */
    private String uuid;

    /**
     * 账号
     */
    private String peopletel;

    /**
     * 领取时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date acquireTime;

    /**
     * 使用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date consumeTime;

    /**
     * 使用状态
     */
    private String consumeState;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPeopletel() {
        return peopletel;
    }

    public void setPeopletel(String peopletel) {
        this.peopletel = peopletel;
    }

    public Date getAcquireTime() {
        return acquireTime;
    }

    public void setAcquireTime(Date acquireTime) {
        this.acquireTime = acquireTime;
    }

    public Date getConsumeTime() {
        return consumeTime;
    }

    public void setConsumeTime(Date consumeTime) {
        this.consumeTime = consumeTime;
    }

    public String getConsumeState() {
        if (this.getConsumeTime() != null) {
            this.consumeState = "已使用";
        } else {
            this.consumeState = "已领取";
        }
        return consumeState;
    }

    public void setConsumeState(String consumeState) {
        this.consumeState = consumeState;
    }

}
